package io.renren.com.qywt.service;

import io.renren.com.qywt.dao.ContractDao;
import io.renren.com.qywt.dto.ContractDTO;
import io.renren.com.qywt.dto.MaxContractDTO;
import io.renren.com.qywt.dto.SupplierCarrierFeeDTO;
import io.renren.commons.mybatis.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TaskContractService extends BaseServiceImpl<ContractDao, ContractDTO> {

    public ContractDTO getContractBySupplierId(String supplierId){
        return baseDao.getContractBySupplierId(supplierId);
    }
    public ContractDTO getContractByShopId(String shopId){
        return baseDao.getContractByShopId(shopId);
    }
    public ContractDTO getContractBySkuId(String skuId) {
        return baseDao.getContractBySkuId(skuId);
    }
    public MaxContractDTO getMaxContractBySupplierId(String supplierId){
        return baseDao.getMaxContractBySupplierId(supplierId);
    }
    public MaxContractDTO getMaxContractBySkuId(String skuId){
        return baseDao.getMaxContractBySkuId(skuId);
    }
    public SupplierCarrierFeeDTO getContractCarrierFees(Map<String,Object> params){
        return baseDao.getContractCarrierFees(params);
    }
}
